<?php
/* * ******************************************************************************************************************************* */

// AGREGAR CAJA PRECIO GENERAL
/* * ******************************************************************************************************************************* */

function mostrar_caja_ideas() {
    query_posts(array('category_name' => 'ideas', 'orderby' => 'rand', 'showposts' => 2));
    ?>


    <div class="box-widget caja-ideas">
        <div class="cabeza">
            <div class="icono-caja"></div>
            <div class="titulo-caja">
                <a href="">Ideas de Tarjetas</a>
            </div>


        </div>
        <hr class="hr1"/>
        <div class="cuerpo-caja" style="position: relative;">
            <table class="tabla-ideas">
                <?php while (have_posts()) : the_post() ?>
                    <tr>
                        <td class="imagen"><a href="<?php the_permalink(); ?>"><?php
                                if (has_post_thumbnail()) {
                                    the_post_thumbnail('idea-tarjeta-caja-thumbnail');
                                } else {
                                    ?>
                                    <img src="<?php bloginfo('template_url') ?>/images/no-imagen.jpg" style="width: 100%;">
                                <?php } ?></a></td>
                        <td class="text"><a href="<?php the_permalink(); ?>" style="font-weight: bold;"><?php the_title(); ?></a><br><?php the_content(); ?></td>
                    </tr>
                <?php endwhile; ?>

            </table>

        </div>
        <div class="div-link-caja" style="left: 15px;">
            <hr/>
            <a class="link-caja" href="javascript;"><span class="play-icon"></span>Ver más ideas</a>
        </div>
    </div>
    <?php
}
?>
